<?php
/*
    资源增加函数，每10秒执行一次
*/

require_once("./common.php");
require_once("./utils.php");

class ResourceCron{
	function resourceAdd($param){
	   sql_query("UPDATE mem_city_resource SET food=food+food_add/360,wood=wood+wood_add/360,rock=rock+rock_add/360,iron=iron+iron_add/360");
	   return $param;
	}
}
?>